import { flgType, useFlagType } from '@/types/enum'
import { TableResponseData, TokenRequestData } from '@/types/interface'
/**
 * 查询客服列表
 * @param name 客服名称
 * @param phone 客服手机号
 */
export interface queryCustomerRequestData extends TokenRequestData {
  name: string
  phone: string
  role: string
}
export interface queryCustomerTableCol {
  name: string
  phone: string
  openId: string
  role: string
  createdTime: string
  lastLoginTime: string
  useFlag: useFlagType
  flg: flgType
  id: string
}

export type queryCustomerResponseData = TableResponseData<queryCustomerTableCol>
export type queryCustomerResponse = ApiResponseData<queryCustomerResponseData>

/** 客服解冻/冻结 */
export interface CustomerFrozenUnfreezeRequestData extends TokenRequestData {
  phone: string
  status: string
}

export type CustomerFrozenUnfreezeResponse = ApiResponseData<string>

/** 客服标识更新 */
export interface CustomerMarkRenewRequestData extends TokenRequestData {
  phone: string
  status: string
}

export type CustomerMarkRenewResponse = ApiResponseData<string>

/** 新增客服 */
export interface CreateCustomerRequestData extends TokenRequestData {
  name: string
  phone: string
  role: string
}

export type CreateCustomerResponse = ApiResponseData<string>

/** 删除客服 */
export interface CustomerRemoveRequestData extends TokenRequestData {
  phone: string
}
export type CustomerRemoveResponse = ApiResponseData<string>

/** 更新客服信息 */
export interface updateCustomerRequestData extends TokenRequestData {
  name: string
  phone: string
  role: string
  id: string
}

export type updateCustomerResponse = ApiResponseData<string>
